package guda.stark.dal.dao;

import guda.stark.dal.dataobject.UnitDO;
import guda.grape.autogen.common.page.BaseQuery;
import java.util.List;

public interface UnitDAO {


    Long insert(UnitDO unit);


    UnitDO getUnitById(Long unitId);


    boolean delUnitById(Long unitId);

    List<UnitDO> getUnitByIds(List idsList);

    /**
     * 清空测试用例加入的autoincrement
     */
    void cleanAutoIncrement(Long unitId);

    List<UnitDO> selectForPage(BaseQuery baseQuery);

    int countForPage(BaseQuery baseQuery);

    void updateByIdSelective(UnitDO unit);

}
